package com.aote.filter;

import javax.servlet.http.*;

public class SetCharacterEncodingFilterResponse extends HttpServletResponseWrapper{

	/**
	 * @param args
	 */
	private String ecoding = null;

    public SetCharacterEncodingFilterResponse(HttpServletResponse response,String encoding) {
        super(response);
        this.ecoding = encoding;
    }

    /* (non-Javadoc)
     * @see javax.servlet.ServletResponse#setContentType(java.lang.String)
     */
    public void setContentType(String value) {
        super.setContentType("text/html;charset="+ecoding);
    }


}
